<template>
    <div id="bottomLeft">
        <div class="bg-color-black">
            <div class="d-flex pt-2 pl-2">
        <span style="color:#5cd9e8">
          <icon name="chart-bar"></icon>
        </span>
                <div class="d-flex">
                    <span class="fs-xl text mx-2">各省份订单数量</span>
                </div>
            </div>
            <div>
                <bottomLeftChart :chart-data="chartData"/>
            </div>
        </div>
    </div>
</template>

<script>
    import bottomLeftChart from "@/components/echart/bottom/bottomLeftChart";
    import {getOrderAddress} from '@/api/report'

    export default {
        data() {
            return {
                chartData: {}
            };
        },
        components: {
            bottomLeftChart
        },
        mounted() {
        },
        created() {
            this.setOrderAddressData();
        },
        methods: {
            setOrderAddressData() {
                getOrderAddress().then(response => {
                    if (response.code == 'success') {
                        this.chartData = response.data;
                        console.log("获取到的数据:" + JSON.stringify(response.data))
                    }
                })
            }
        }
    };
</script>

<style lang="scss">
    #bottomLeft {
        padding: 0.3rem 0.2rem;
        height: 6.5rem;
        min-width: 3.75rem;
        border-radius: 0.0625rem;

        .bg-color-black {
            height: 6.0625rem;
            border-radius: 0.125rem;
        }

        .text {
            color: #c3cbde;
        }

        .chart-box {
            margin-top: 0.2rem;
            width: 2.125rem;
            height: 2.125rem;

            .active-ring-name {
                padding-top: 0.125rem;
            }
        }
    }
</style>